import cookieShare from "@/plugins/cookieShare"
import Cookies from "js-cookie"

const TokenKey = 'BUGCOME-Token'


export function getToken() {
  return cookieShare.get(TokenKey)
}

export function setToken(token) {
  return cookieShare.set(TokenKey, token, null, import.meta.env.VITE_Domain)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
